% # File Info -- stSamp.tex, Part of SDUSThesis package, sample usage.

% Version Control System Information -- Subversion, hosts on <+Google Code+>;
% $URL: http://sdusthesis.googlecode.com/svn/trunk/stSamp.tex $;
% $Id: stSamp.tex 20 2012-05-13 11:24:20Z suxpert@gmail.com $;

% # Copyright (C) 2009-2012, LiTuX, All wrongs reserved.
%
%	Permission is granted to copy, distribute and/or modify this document
%	under the terms of the GNU Free Documentation License, Version 1.3
%	or any later version published by the Free Software Foundation;
%	with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
%	A copy of the license is included in the section entitled "GNU
%	Free Documentation License".
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% SDUSThesis is provided as a class of LaTeX-2e:
\documentclass{SDUSThesis}
% \documentclass[abstract]{SDUSThesis}
%% `abstract' option is used to generate the detailed abstract version of
%% the thesis. Note that you have to make a slight modification on your
%% standard version of the thesis(or with the `thesis' option) to get the
%% detailed abstract even if your thesis has the same structure of this sample.

%% For better control of the structure, we recommend to include different
%% parts into a main TeX file.

%% When use abstract option, include the abstract part only.
% \includeonly{sample/stAbs, sample/stDAbs}

%% Specifying the searching path for graphics is optional, default is `.'
\graphicspath{{sample/}}
%% You can also specify the extensions of graphics if you do not want to add
%% the name extension in the includegraphics command.
% \DeclareGraphicsExtensions{.pdf,.png,.jpg}

%% SDUSThesis use biblatex for adding bibliography,
%% an extra `bibtex' database rather than `thebibliography' environment
%% is recommended for bibliography.
\addbibresource{sample/refs.bib}

%% Of cause you can control some biblatex effects. Read the manual for details.
\ExecuteBibliographyOptions{
	% backend=bibtex,
	% firstinits=true,
	backref=true,
	backrefstyle=all+,
	isbn=false,
	url=false,
	doi=false,
	eprint=false,
}

%% You can of cause use any other packages if you want,
%% note that SDUSThesis has load lots of useful packages.
\usepackage[version=3]{mhchem} % chemistry
\usepackage{siunitx} % SI units
\usepackage{makecell}
% \usepackage{enumerate}
\usepackage{xcolor}
\usepackage{listings}
\lstset{
	language=tex,
	% basicstyle=\ttfamily\small,
	% basicstyle=\ttfamily\fontsize{10}{11}\linespread{1}\selectfont,
	basicstyle=\ttfamily\small\linespread{1}\selectfont,
	numbers=left,
	numberstyle=\footnotesize,
	% numbersep=10pt,
	% numberfirstline=false,
	numbersep=0.5em,
	% stepnumber=2,
	breaklines=true,
	extendedchars=false,
	tabsize=4,
	xleftmargin=1em,
	% xrightmargin=0em,
	% framexleftmargin=-10mm,
	% framexrightmargin=-10mm,
	% frame=none,
	backgroundcolor=\color[RGB]{240,255,255},
	keywordstyle=\color[RGB]{128,64,64},
	% identifierstyle=,
	numberstyle=\color{purple},
	commentstyle=\color{blue},
	stringstyle=\color[RGB]{255,0,255},
	% title=\lstname,
	showstringspaces=false,
}

\usepackage{lipsum}
\usepackage{showexpl}
% \usepackage{pdfpages}

\newcommand{\google}{\href{http://www.google.com}{%
\textcolor[RGB]{  0,  64, 224}{G}% blue   / #0040E0 / #0140CA, 36, 72, 255
\textcolor[RGB]{224,  32,  64}{o}% red    / #E02040 / #DD1812, 255, 36, 36
\textcolor[RGB]{240, 160,   0}{o}% orange / #F0A000 / #FCCA03, 255, 196, 36
\textcolor[RGB]{  0,  64, 224}{g}% blue   / #0040E0 / #0140CA, 36, 72, 255
\textcolor[RGB]{  0, 160,  32}{l}% green  / #00A020 / #16A61E, 0, 196, 36
\textcolor[RGB]{224,  32,  64}{e}}}% red  / #E02040 / #DD1812, 255, 36, 36

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Both the \author and the \title command have an optional argument
%% indicating the English version of the information.
%% The \supervisor command is the same type, as is used following.
\author[Zhang San]{张三}
\title[Typesetting on Master's thesis in SDUST]{山东科技大学硕士毕业论文范例}
% \date{2012.5.13}	% if not specified, default is \today
%% Note that all date format should be YYYY.MM.DD or YYYY/MM/DD or YYYY-MM-DD,
%% For foreigners, use those command as follows:
% \author{John Smith}
% \title{Typesetting on Master's thesis in SDUST}

% \classNo{TD745}	% default is empty
% \secType{公开}	% default is `公开'
% \UDC{}		% default is empty
% \orgNo{10424}		% default is `10424'
\degree{Science}{硕士}
\major{运筹学与控制论}
\field{稳定性与现代控制理论}

\supervisor[Emanon.~W.]{吴明士}
\ptitle{教授}{Prof.~}

\advisor{其他导师}{职称}
\advisor{更多导师}{副教授}

% \enroll{2009.9.3}	% default is Sept., 3 years ago.
% \defense{2012.6.17}	% default is June, this year.

\college{信息科学与工程学院}{College of Information Science and Engineering}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%% The cover page and so on are created by \maketitle command,
%% a \maketitle command is actually 2 or 3 commands,
%% \makecover{..} for the cover page,
%% \makeflypage will create the next two summary pages in Chinese and English,
%% and \affirmation shows the affirmation page.
%% You can of cause use them seperately.
\maketitle

%% after that, use this \stfrontmatter command to tell SDUSThesis that
%% the following will be abstracts and contents.
\stfrontmatter

%% zhAbstract environment is used to add the abstract in Chinese,
%% enAbstract environment is for English. Use the corresponding
%% keyword command inside these environment to add keywords.
\include{sample/stAbs}

%% \makecontents will add the content both in Chinese and English,
%% only if the structure of the text is correctly specified.
%% If `abstract' option is specified, this command will do nothing.
\makecontents

%% \stmainmatter tells SDUSThesis that the next part will be the body.
\stmainmatter

%% If use the `abstract' option, include the detailed abstract part.
% \include{sample/stDAbs}

%% You can of cause include another TeX files.
\include{sample/stBody}
\include{sample/bibtex}
\include{sample/samp}

\nocite{*}

%% \stbackmatter tells SDUSThesis that the body part is ended.
%% Following should be acknowledgement, bibliography and works etc.
\stbackmatter

%%%%%%%%%%%%%%%%%%%%%%%%% acknowledgement %%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{acknowledgement}
	依据\href{http://blog.sina.com.cn/s/blog_5e9f35ea0100h4ng.html}
	{《中华人民共和国感谢法》}\kern -0.5em% an ugly adjust
	（2010 年 3 月 12 日，4 月 1 日起执行）第一章第六条，
	作者首先感谢党和政府的培养，感谢国家，感谢有关部门的各级领导干部，
	没有共产党就没有新中国，没有新中国估计也不会有我，即使有我也估计不可能上
	的了大学，即使上的了大学估计也没机会接触电脑更不用说 \LaTeX{}……
	感谢党和政府的大力支持以及各级领导的帮助和关怀。

	为表达感谢，根据《中华人民共和国感谢法》第二章第二十一条，作者点播红歌
	一曲，恳请重庆红歌合唱团跟中国爱乐乐团合作奉上：《我爱这绿色的海洋》
	\footnote{欢迎夏天来青岛参观大草原。}。

	谨此献给 \verb|@Chaosconst| 同学，兑现当初制作论文模板的承诺。

	感谢他引领我进入自由软件的世界，感谢由此接触到的包括 Vim，Linux，\LaTeX{}
	等等众多优秀的工具，感谢 wikipedia 和 \google{}。

	感谢 Clerk Ma 同学在制作本模板时给予的各种帮助。
\end{acknowledgement}

%%%%%%%%%%%%%%%%%%%%%%%%%%% bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% If use natbib, try the following. But we do not provide its bst file,
%% so you need to find one or made it yourself.
% \bibliographystyle{plainnat} % You may try the GBT7714 style.
% \bibliography{refs}

%% Use printbibliography command for showing the bibliography if you using
%% biblatex and a bibtex database. If using `thebibliography' environment,
%% you MAY need to do some changes to fit the standard...
%% Of cause we prefer the biblatex way for bibliography.
\printbibliography
% \begin{thebibliography}{99}
% \addcontentsline{toc}{chapter}{参考文献}
% \addcontentsline{toe}{chapter}{Reference}
%     \bibitem{lnotes2}
%         包太雷, \LaTeX{} Notes, 第二版, 2012.
%     \bibitem{lshort}
%         Tobias Oetiker, A (Not So) Short Introduction to \LaTeXe{}, 2009.
% \end{thebibliography}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%% works %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{sample/works}

%% All appendix should be after \appendix command
\stappendix
\include{sample/standard}

\end{document}
% vim: set ts=4 sw=4 :

